package com.flying.client.network;

public class NetworkResult {
	
	public static final int STATUS_FAILED = -1;
	public static final int STATUS_SUCCESSED = 0;
	
	private int status = STATUS_SUCCESSED;
	private NetworkClient client;
	
	public NetworkResult(int status,NetworkClient client)
	{
		this.status = status;
		this.client = client;
	}
	public NetworkResult(NetworkClient client)
	{
		this.client = client;
	}
	
	public boolean isSuccess()
	{
		return status == STATUS_SUCCESSED;
	}
	
	public boolean isFailed()
	{
		return status == STATUS_FAILED;
	}
	
	public NetworkClient getClient()
	{
		return client;
	}
}
